package com.hirain.observerjava;

import java.util.ArrayList;
import java.util.List;
import java.util.Observable;

/**
 * Created by caicf on 2016/8/17.
 */
public class Hunter extends Observable {
    private List<Job> jobs=new ArrayList<>();

    public List<Job> getJobs() {
        return jobs;
    }

    public void addJobs(Job job) {
        setChanged();
        jobs.add(job);
        notifyObservers(job);
    }
}
